package com.example.dao;

import com.example.mybatis.dao.BaseDao;
import com.example.entity.RawMaterialsConfigEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* 原材料配置表
*
* @author yyyyjinying 1020066395@qq.com
* @since 1.0-SNAPSHOT 2025-04-29
*/
@Mapper
public interface RawMaterialsConfigDao extends BaseDao<RawMaterialsConfigEntity> {

    List<RawMaterialsConfigEntity> query(@Param("dishId") Long dishId);

    void deleteMaterials(@Param("configIds") List<Long> configIds, @Param("dishId") Long dishId);
}